﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using Moq;
using ecdl.demo.model.util;
using ecdl.demo.model;

namespace ecdl.demo.test {
    public class TestModule : demo.application.DemoTestModule {

        public override void Load() {
            base.Load();
            Rebind<ITaskPresenter>().ToConstant<ITaskPresenter>(Mock.Of<ITaskPresenter>());
            Rebind<ITestPresenter>().ToConstant<ITestPresenter>(Mock.Of<ITestPresenter>());
            Rebind<ITestTimer>().ToConstant<ITestTimer>(Mock.Of<ITestTimer>());
            Rebind<IVolumeProvider>().To<TempDirectoryVolumeProvider>();
            Rebind<TestRun>().ToSelf();
            Rebind<ITaskEvaluationPresenter>().ToConstant<ITaskEvaluationPresenter>(Mock.Of<ITaskEvaluationPresenter>());
        }
    }
}
